ALMaSS  1.0
The Animal, Landscape and Man Simulation System
AlleleFreq256_16 Class Reference

#include <GeneticMaterial.h>

Public Member Functions

 AlleleFreq256_16 ()
 
int SupplyAN (int loc, int al)
 

Protected Attributes

int AlleleNumber [256][16]
 
float AlleleFrequency [16][256]
 
float HE [16]
 
float HO [16]
 
int NoAlleles [256]
 

Constructor & Destructor Documentation

◆ AlleleFreq256_16()

AlleleFreq256_16::AlleleFreq256_16 ( )
575  {
576  FILE * FreqFile = fopen("GeneticFrequencies_256_16_Mut.txt", "r" );
577  int data;
578  if ( !FreqFile ) {
579  g_msg->Warn( "GeneticFrequencies_256_16_Mut.txt File missing - AllelFreq1616", "" );
580  exit( 0 );
581  }
582  for ( int i = 0; i < 256; i++ ) {
583  for ( int j = 0; j < 16; j++ ) {
584  fscanf( FreqFile, "%d", & data );
585  AlleleNumber[ i ] [ j ] = data;
586  }
587  }
588 
589  fclose( FreqFile );
590 }
int AlleleNumber[256][16]
Definition: GeneticMaterial.h:182
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: maperrormsg.cpp:59
class MapErrorMsg * g_msg
This pointer provides access the to the internal ALMaSS error message system.
Definition: maperrormsg.cpp:41

References AlleleNumber, g_msg, and MapErrorMsg::Warn().

Member Function Documentation

◆ SupplyAN()

int AlleleFreq256_16::SupplyAN ( int  loc,
int  al 
)
inline
189 { return AlleleNumber[al][loc];}

References AlleleNumber.

Referenced by GeneticMaterial256_16::Initiation().

Member Data Documentation

◆ AlleleFrequency

float AlleleFreq256_16::AlleleFrequency[16][256]
protected

◆ AlleleNumber

int AlleleFreq256_16::AlleleNumber[256][16]
protected

Referenced by AlleleFreq256_16(), and SupplyAN().

◆ HE

float AlleleFreq256_16::HE[16]
protected

◆ HO

float AlleleFreq256_16::HO[16]
protected

◆ NoAlleles

int AlleleFreq256_16::NoAlleles[256]
protected

The documentation for this class was generated from the following files: